package com.kaka.bus.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kaka.bus.R;
import com.kaka.bus.bean.InviteRule;

import java.util.List;

/**
 * Created by zhangqi on 2016/11/2.
 */

public class InviteRuleAdapter extends BaseQuickAdapter<InviteRule.RulesData,BaseViewHolder> {


    public InviteRuleAdapter(int layoutResId, @Nullable List<InviteRule.RulesData> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, InviteRule.RulesData item) {
        helper.setText(R.id.item_invite_tv,item.getCodeCode());
    }
}
